﻿<kv:ImageViewer x:Class="Microsoft.Samples.Kinect.WpfViewers.KinectAudioViewer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:kv="clr-namespace:Microsoft.Samples.Kinect.WpfViewers"
             mc:Ignorable="d" 
             d:DesignHeight="20" d:DesignWidth="100">
    <Grid MinHeight="20" MinWidth="100" Margin="0,2,0,2" >
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Border x:Name="theBorderBeam" BorderBrush="Gray" BorderThickness="1" MinHeight="10" MinWidth="100" Grid.Row="0">
            <Border.Background>
                <LinearGradientBrush>
                    <LinearGradientBrush.GradientStops>
                        <GradientStop x:Name="gsStart"  Color="Black"   Offset="0" />
                        <GradientStop x:Name="gsPre"    Color="Black"   Offset="0.45" />
                        <GradientStop x:Name="gsIt"     Color="Orange"  Offset="0.5" />
                        <GradientStop x:Name="gsPos"    Color="Black"   Offset="0.55" />
                        <GradientStop x:Name="gsEnd"    Color="Black"   Offset="1" />
                    </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
            </Border.Background>
            <Border.Child>
                <TextBlock x:Name="txtDisplayBeam" Foreground="White" FontFamily="Verdana" FontSize="10" Text="" />
            </Border.Child>
        </Border>
        <Border x:Name="theBorderSource" BorderBrush="Gray" BorderThickness="1" MinHeight="10" MinWidth="100" Grid.Row="1">
            <Border.Background>
                <LinearGradientBrush>
                    <LinearGradientBrush.GradientStops>
                        <GradientStop x:Name="gsStartS"  Color="Black"   Offset="0" />
                        <GradientStop x:Name="gsPreS"    Color="Black"   Offset="0.45" />
                        <GradientStop x:Name="gsItS"     Color="Red"  Offset="0.5" />
                        <GradientStop x:Name="gsPosS"    Color="Black"   Offset="0.55" />
                        <GradientStop x:Name="gsEndS"    Color="Black"   Offset="1" />
                    </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
            </Border.Background>
            <Border.Child>
                <TextBlock x:Name="txtDisplaySource" Foreground="White" FontFamily="Verdana" FontSize="10" Text="" />
            </Border.Child>
        </Border>
    </Grid>
</kv:ImageViewer>
